/*
 * 版本号的管理
 * 1：app/微信进入 带入version可有可无（app 一定要带入，可以取app的版本号） 
 * 2：版本号的优先级 FILEversion》地址栏带入参数优先级》本地缓存》当前文档》无
 * 3:xxxxxxxxxxxxxxxxxxxxx 算了全部取本地文件的版本号为准吧
 *
 * */
var getQueryString=function(name) { 
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");     
	var r = window.location.search.substr(1).match(reg);     
	if (r != null) return  unescape(r[2]);
	return null;
}
var _version = "20180116";

seajs.config({

	alias: {
		"jquery": "libs/jquery/jquery",
		"jqueryMobile": "libs/jquery.mobile/jquery.mobile-1.3.0.min",
		"iscroll": "libs/iscroll/iscroll",
		"zepto": "libs/zepto/zepto",
		"scale": "libs/scale/scale",

		"datepicker": "common/datepicker/datepicker",
		"swiper": "common/swiper/idangerous.swiper-2.1.min",

		"jquery.cookie": "common/jquery.cookie/jquery.cookie",
		"jquery.easyui.min": "common/jquery.easyui.min/jquery.easyui.min",
		"jquery.form": "common/jquery.form/jquery.form",
		"jquery-mobiscroll": "common/jquery-mobiscroll/mobiscroll.custom-2.5.0.min",
		"jqueryMore": "common/jqueryMore/jqueryMore",
		"Math.uuid": "common/Math.uuid/Math.uuid",
		
		"Base64": "common/base64",
		"Common": "common/Common",
		"Common2": "common/Common2",
		"Common3": "common/Common3",
		
		"qrcode": "common/jquery.qrcode/jquery.qrcode.min"
	},

	paths: {
		'gallery': ''
	},

	map: [
		['.js', '.js?v=' + _version]
	],

	plugins: [''],

	preload: [document.all ? 'libs/json/json' : ""],

	//base: '/hd_wechat/resource/js/',
	base: '/tpl/static_index/resource/js/',
	//base: '/hongda/resource/js/',
	charset: 'utf-8'
});